package com.wuyou.threadlocal;/**
 * HashDemo
 *
 * @Date 2025-09-24 15:19
 * @Author 无忧
 */
public class HashDemo {

    private final static int HASH_INCREMENT = 0x61c88647;

    public static void main(String[] args) {
        int hashCode = 0;
        for (int i=0;i<99;i++){
            hashCode = i * HASH_INCREMENT + HASH_INCREMENT;
            int bucket = hashCode & 98;
            System.out.println(String.format("%s 在桶中的位置:->%s", i, bucket));
        }
    }
}
